﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HumanResources
{
    public class Employee
    {
        public Employee(DateTime birthDate)
        {
            BirthDate = birthDate;
        }

        public Employee(string firstName, string lastName, DateTime birthDate)
        {
            FirstName = firstName;
            LastName = lastName;
            BirthDate = birthDate;
        }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public Profession Title { get; set; }
        public Gender Gender { get; set; }
        private DateTime BirthDate { get; set; }
        public TimeSpan Age
        {
            get
            {
                return DateTime.Now - BirthDate;
            }
        }

        public override string ToString()
        {
            return String.Format("{0} {1}", FirstName, LastName);
        }
    }
}
